/* 
 * File:   newClass.cpp
 * Author: Topher
 * 
 * Created on March 2, 2012, 5:23 AM
 */

#include "Customer.h"
#include "Utilities.h"

Customer::Customer(){}

Customer::Customer (int id, string n, Street_address a)  : cust_id(id), cust_name(n), addr(a) {}

string Customer::display() const
{
	//return (Utilities::padLeft(Utilities::convertInt(cust_id), Utilities::CUST_ID_LENGTH) + "\t" + Utilities::padRight(cust_name, Utilities::CUST_NAME_LENGTH) + "\t" + Utilities::padRight(Utilities::convertAddress(addr), Utilities::CUST_ADDRESS_LENGTH));
	return (Utilities::padRight(Utilities::convertInt(cust_id), Utilities::CUST_ID_LENGTH) + "\t" + Utilities::padRight(cust_name, Utilities::CUST_NAME_LENGTH) + "\t" + Utilities::padRight(Utilities::convertAddress(addr), Utilities::CUST_ADDRESS_LENGTH));
}

int Customer::get_cust_id()
{
    return cust_id;
}

string Customer::get_cust_name()
{
    return cust_name;
}

Street_address Customer::get_cust_addr()
{
    return addr;
}

/* testing
int main(){
	Customer c(1,"wew",Street_address(1,"a",2));
	string street_id = c.get_cust_addr().get_street_id();
	
	cout << c.get_cust_name() << endl;
	cout <<  street_id << endl;
	return 0;
}
*/